import axios from '@/utils/request';
export class DailyCarriageApi {
  // 更新
  static update(data: any): Promise<any> {
    return axios.post('/api/business/admin/daily-carriage/update', data);
  }
  // 新增
  static add(data: any): Promise<any> {
    return axios.post('/api/business/admin/daily-carriage/add', data);
  }
  // 查询
  static query(params: any): Promise<any> {
    return axios.get('/api/business/admin/daily-carriage/list', { params });
  }
  // 查询乘客详情
  static detail(id: string): Promise<any> {
    return axios.get('/api/business/admin/daily-carriage/detail', { params: { id } });
  }
  // 删除
  static delete(id: string): Promise<any> {
    return axios.post('/api/business/admin/daily-carriage/delete', { id });
  }
}
